<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 13.01.2015
 * Time: 14:43
 */

namespace EmailDelivery;


class EmailDelivery {

	/**
	 * @param $type - тип шаблона \EmailDeliveryConfig::*
	 * @param array $params - параметры шаблона
	 */
	public static function sendTemplate($type, array $params)
	{
		Queue::enqueue(
			[
				'type' => \EmailDeliveryConfig::SEND_TEMPLATE,
				'data' => [
					'templateType' => $type,
					'templateParams' => $params,
				]
			]
		);
	}
} 